package com.atguigu.yygh.cmn;/*
 * @author: XueYouPeng
 * @time: 2023/6/8 10:30
 */

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//和excel表格映射
//excel表格中有几列，类中定义几个属性
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    //index第几列（0-对应excel中的第一列）
    //value   excel表格的表头名称
    @ExcelProperty(index = 0,value = "学生编号")
    private Integer stuNum;
    @ExcelProperty(index = 1,value = "学生姓名")
    private String stuName;
    @ExcelProperty(index = 2, value = "学生年龄")
    private Integer stuAge;
}
